<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\TopicRepository")
 */
class Topic
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;

    /**
     * @ORM\Column(type="integer")
     */
    private $gradeId;

    /**
     * @ORM\Column(type="integer")
     */
    private $subjectId;

    /**
     * @ORM\Column(type="integer")
     */
    private $teacherId;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $intro;

    /**
     * @ORM\Column(type="integer")
     */
    private $videoNum;

    /**
     * @ORM\Column(type="integer")
     */
    private $videoTime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $addtime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $updatetime;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isTop;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isHot;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isOn;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $content;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $pic;

    public function getId()
    {
        return $this->id;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getGradeId(): ?int
    {
        return $this->gradeId;
    }

    public function setGradeId(int $gradeId): self
    {
        $this->gradeId = $gradeId;

        return $this;
    }

    public function getSubjectId(): ?int
    {
        return $this->subjectId;
    }

    public function setSubjectId(int $subjectId): self
    {
        $this->subjectId = $subjectId;

        return $this;
    }

    public function getTeacherId(): ?int
    {
        return $this->teacherId;
    }

    public function setTeacherId(int $teacherId): self
    {
        $this->teacherId = $teacherId;

        return $this;
    }

    public function getIntro(): ?string
    {
        return $this->intro;
    }

    public function setIntro(?string $intro): self
    {
        $this->intro = $intro;

        return $this;
    }

    public function getVideoNum(): ?int
    {
        return $this->videoNum;
    }

    public function setVideoNum(int $videoNum): self
    {
        $this->videoNum = $videoNum;

        return $this;
    }

    public function getVideoTime(): ?int
    {
        return $this->videoTime;
    }

    public function setVideoTime(int $videoTime): self
    {
        $this->videoTime = $videoTime;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(?string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getUpdatetime(): ?string
    {
        return $this->updatetime;
    }

    public function setUpdatetime(?string $updatetime): self
    {
        $this->updatetime = $updatetime;

        return $this;
    }

    public function getIsTop(): ?int
    {
        return $this->isTop;
    }

    public function setIsTop(?int $isTop): self
    {
        $this->isTop = $isTop;

        return $this;
    }

    public function getIsHot(): ?int
    {
        return $this->isHot;
    }

    public function setIsHot(?int $isHot): self
    {
        $this->isHot = $isHot;

        return $this;
    }

    public function getIsOn(): ?int
    {
        return $this->isOn;
    }

    public function setIsOn(?int $isOn): self
    {
        $this->isOn = $isOn;

        return $this;
    }

    public function getContent(): ?string
    {
        return $this->content;
    }

    public function setContent(?string $content): self
    {
        $this->content = $content;

        return $this;
    }

    public function getPic(): ?string
    {
        return $this->pic;
    }

    public function setPic(?string $pic): self
    {
        $this->pic = $pic;

        return $this;
    }
}
